package com.ecommerce.payment.entity;

/**
 * 支付方式枚举
 */
public enum PaymentMethod {
    ALIPAY(1, "支付宝"),
    WECHAT(2, "微信支付"),
    BANK_CARD(3, "银行卡");

    private final int code;
    private final String description;

    PaymentMethod(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() { return code; }
    public String getDescription() { return description; }
}